package com.xb.loan.encryptor.util;


import java.util.Properties;

public class Const {
	// jar路径
	public static String LIB_PATH;
	
	// 密钥文件根路径
	public static String KEY_PATH;
	
	public static final String PARTNER_GEN_PRIKEY = "genPri";
	
	public static final String PARTNER_GEN_PUBKEY = "genPub";
	
	public static final String PARTNER_PUBKEY = "partnerPub";
	
	static {
		
		init();
	}

	private static void init() {
		
		Properties props = Resources.readAsProperties("config/const.properties");
		
		LIB_PATH = props.getProperty("lib_path");
		KEY_PATH = props.getProperty("key_path");
	}
	
	public static void main(String[] args) {
		
		System.out.println(LIB_PATH);
	}
}
